package com.heima.behavior.pojos;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.bson.types.ObjectId;


/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("read_behavior")
public class ReadBehavior implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private ObjectId id;

    @ApiModelProperty(value = "文章ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleId;

    @ApiModelProperty(value = "阅读次数")
    private Integer count;

}
